package com.dingqb.androidproject.mvp;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by dingqb on 2018/3/30.
 */

public class Presenter {
    Mode mMode;

    public Presenter(Mode mode) {
        this.mMode = mode;
    }

    private static int i = 0;

    public void addPresenter(final String str) {

        new Timer().schedule(new TimerTask() {
            @Override
            public void run() {
                mMode.add(str + "----i==" + i++);
            }
        }, 2000, 2000);

    }

    public void updatePresenter(String str) {
    }

    public void deletePresenter(String str) {
    }
}
